package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.BAskLog;
import com.ruoyi.system.domain.request.AskLogRequest;
import com.ruoyi.system.domain.vo.BAskLogVo;
import com.ruoyi.system.service.BAskLogService;
import com.ruoyi.system.mapper.BAskLogMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author yangxingze
* @description 针对表【b_ask_log(问答记录表)】的数据库操作Service实现
* @createDate 2024-10-30 00:24:59
*/
@Service
public class BAskLogServiceImpl extends ServiceImpl<BAskLogMapper, BAskLog>
    implements BAskLogService{

    /**
     * 查询问答记录列表
     * @param request
     * @return
     */
    @Override
    public List<BAskLogVo> queryList(AskLogRequest request) {
        return baseMapper.queryList(request);
    }

    /**
     * 根据id查询问答记录
     * @param askId
     * @return
     */
    @Override
    public BAskLogVo selectAskLogById(Long askId) {
        return baseMapper.selectAskLogById(askId);
    }
}




